# Maintaier: Antonio Rojas <arojas@archlinux.org>

pkgname=vector-blf
pkgver=2.4.1
pkgrel=1
_commit=0e44244f0dc8df85c58260227d0649bbf3154f01
pkgdesc='A library to access Binary Log File (BLF) files from Vector Informatik'
arch=(loong64 x86_64)
license=(GPL3)
url='https://github.com/Technica-Engineering/vector_blf'
depends=(gcc-libs zlib)
makedepends=(cmake doxygen git)
source=(git+https://github.com/Technica-Engineering/vector_blf#commit=$_commit)
sha256sums=('SKIP')

build() {
  cmake -B build -S ${pkgname//-/_} \
    -DCMAKE_INSTALL_PREFIX=/usr
  cmake --build build
}

package() {
  DESTDIR="$pkgdir" cmake --install build
}
